package com.lz.demo9;

/**
 * @ClassName TestRerson
 * @Description 测试
 * @Author 2214361854
 * @Date 2022/5/28 15:08
 * @Version 1.0
 */
public class TestPerson {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        Student s = new Student();
        Parents p = new Parents();
        t.eat();
        t.sleep();
        s.eat();
        s.sleep();
        p.eat();
        p.sleep();
    }
}

